Skip to content

docs: add scout_last_observed_version to ingestion troubleshooting section#3513

Open
ericpretzel wants to merge 2 commits into
NVIDIA:mainfrom
ericpretzel:docs
Open

docs: add scout_last_observed_version to ingestion troubleshooting section#3513
ericpretzel wants to merge 2 commits into
NVIDIA:mainfrom
ericpretzel:docs

Conversation

@ericpretzel

Copy link
Copy Markdown
Contributor

Documenting #2037 - makes site operators aware of the last_scout_observed_version value exposed in Core and how it can be used to help troubleshoot.

Type of Change

  • Add - New feature or capability
  • Change - Changes in existing functionality
  • Fix - Bug fixes
  • Remove - Removed features or deprecated functionality
  • Internal - Internal changes (refactoring, tests, docs, etc.)

Breaking Changes

  • This PR contains breaking changes

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • No testing required (docs, internal refactor, etc.)

Additional Notes

@ericpretzel ericpretzel added this to the v2.0 milestone Jul 14, 2026
@ericpretzel ericpretzel requested a review from polarweasel as a code owner July 14, 2026 21:16
@github-actions

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Summary by CodeRabbit

  • Documentation
    • Added troubleshooting guidance for checking the Scout version associated with host ingestion failures.
    • Clarified that the reported version reflects the latest discovery, may be unavailable, and may differ from the currently running agent.

Walkthrough

The host ingestion failure playbook adds a “Check the Scout version” step. It documents querying NICo’s last_scout_observed_version and explains how to interpret unknown or null values and later discovery updates.

Changes

Host ingestion troubleshooting

Layer / File(s) Summary
Scout version check
docs/playbooks/stuck_objects/host_ingestion_failures.md
Adds NICo CLI and jq instructions for reading last_scout_observed_version, with guidance that it reflects the latest discovery observation rather than necessarily the running Scout agent.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately reflects the added Scout version troubleshooting documentation.
Description check ✅ Passed The description is directly related to the documentation change and its troubleshooting purpose.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

🔍 Container Scan Summary

No Grype artifacts were found to aggregate.

@ericpretzel ericpretzel removed this from the v2.0 milestone Jul 14, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/playbooks/stuck_objects/host_ingestion_failures.md`:
- Around line 105-109: Update the documentation describing
last_scout_observed_version to state that NICo updates it only when discovery is
reported by Scout with a non-empty discovery_reporter_version; discoveries
without a version leave the previous value unchanged. Clarify that commands
render stored null or missing values as “unknown,” while preserving the existing
explanation that later qualifying Scout discoveries replace the stored value.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 09367614-b241-4b28-8ed2-12ad2ded7a19

📥 Commits

Reviewing files that changed from the base of the PR and between 1e103e9 and 65b081b.

📒 Files selected for processing (1)
  • docs/playbooks/stuck_objects/host_ingestion_failures.md

Comment on lines +105 to +109
The `last_scout_observed_version` value is updated whenever Scout registers the
host during discovery and remains associated with the machine after assignment.
It identifies the last discovery image, not necessarily a currently running agent.
The value is `null` for machines that have not completed discovery with a Scout
version that reports it, and a later Scout discovery replaces the stored value.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Align the update semantics with the producer contract.

The field is updated only when the discovery reporter is Scout and discovery_reporter_version is non-empty (crates/api-core/src/handlers/machine_discovery.rs:433-445). Therefore, “whenever Scout registers” overstates the behavior: a discovery without a version leaves the previous value unchanged. Please state that NICo updates it when it receives a non-empty Scout version, and clarify that the command renders stored null/missing values as unknown.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/playbooks/stuck_objects/host_ingestion_failures.md` around lines 105 -
109, Update the documentation describing last_scout_observed_version to state
that NICo updates it only when discovery is reported by Scout with a non-empty
discovery_reporter_version; discoveries without a version leave the previous
value unchanged. Clarify that commands render stored null or missing values as
“unknown,” while preserving the existing explanation that later qualifying Scout
discoveries replace the stored value.

Source: Path instructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant